package com.orientsec.autotest.project.system.targetstrucdetail.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.orientsec.autotest.project.system.targetstrucdetail.mapper.TargetstrucdetailMapper;
import com.orientsec.autotest.project.system.targetstrucdetail.domain.Targetstrucdetail;
import com.orientsec.autotest.project.system.targetstrucdetail.service.ITargetstrucdetailService;
import com.orientsec.autotest.common.utils.text.Convert;

/**
 * 目标文件结构配置详情 服务层实现
 * 
 * @author autotest
 * @date 2019-12-27
 */
@Service
public class TargetstrucdetailServiceImpl implements ITargetstrucdetailService 
{
	@Autowired
	private TargetstrucdetailMapper targetstrucdetailMapper;

	/**
     * 查询目标文件结构配置详情信息
     * 
     * @param id 目标文件结构配置详情ID
     * @return 目标文件结构配置详情信息
     */
    @Override
	public Targetstrucdetail selectTargetstrucdetailById(Integer id)
	{
	    return targetstrucdetailMapper.selectTargetstrucdetailById(id);
	}
	
	/**
     * 查询目标文件结构配置详情列表
     * 
     * @param targetstrucdetail 目标文件结构配置详情信息
     * @return 目标文件结构配置详情集合
     */
	@Override
	public List<Targetstrucdetail> selectTargetstrucdetailList(Targetstrucdetail targetstrucdetail)
	{
	    return targetstrucdetailMapper.selectTargetstrucdetailList(targetstrucdetail);
	}
	
    /**
     * 新增目标文件结构配置详情
     * 
     * @param targetstrucdetail 目标文件结构配置详情信息
     * @return 结果
     */
	@Override
	public int insertTargetstrucdetail(Targetstrucdetail targetstrucdetail)
	{
	    return targetstrucdetailMapper.insertTargetstrucdetail(targetstrucdetail);
	}
	
	/**
     * 修改目标文件结构配置详情
     * 
     * @param targetstrucdetail 目标文件结构配置详情信息
     * @return 结果
     */
	@Override
	public int updateTargetstrucdetail(Targetstrucdetail targetstrucdetail)
	{
	    return targetstrucdetailMapper.updateTargetstrucdetail(targetstrucdetail);
	}

	/**
     * 删除目标文件结构配置详情对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTargetstrucdetailByIds(String ids)
	{
		return targetstrucdetailMapper.deleteTargetstrucdetailByIds(Convert.toStrArray(ids));
	}
	
}
